﻿@model GameSchool.Models.singleAssignmentViewModel

@{
    ViewBag.Title = "Assignment ";
    Layout = "~/Views/Shared/_LayoutStudent.cshtml";
 }

<h2>View And Hand In Assignment</h2>
<div>
    <p>Title: @Model.theAssignment.title</p>
    <p>Description: " @Model.theAssignment.description "</p>
    <p></p>
</div>
<div>
    <p>
        @using (Html.BeginForm("ViewAssignment", "Assignment", FormMethod.Post, new { enctype = "multipart/form-data" }))
        { 
            <label for="file">Upload File :</label>
            <input type="file" name="file" id="file"/>
            <input type="submit" value="Upload file" />
            @Html.HiddenFor(x => x.assID)

        }
    </p>

</div>

<ul>
    @section menu{
        <li>@Html.ActionLink("Courses Overview", "StudentHome", "Student")</li> 
        <li>@Html.ActionLink("Assignment", "ViewAssignmentsInCourse", "Assignment", new { CID = Model.courseID }, null)</li>    
        <li>@Html.ActionLink("Online Exam", "ViewExam", "Exam", new { CID = Model.courseID }, null)</li>
        <li>@Html.ActionLink("Lecture", "ViewLecturesInCourse", "Lecture", new { CID = Model.courseID }, null)</li>
        <li>@Html.ActionLink("Description", "CourseDescription", "Course", new { CID = Model.courseID }, null)</li>
        <li>@Html.ActionLink("XP/Achievements", "XPAchievement", "Achievement", new { CID = Model.courseID }, null)</li>
    }
</ul>